<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/dmodule">
		<html>
			<head>
				<meta charset="utf-8"/>
				<meta name="viewport" content="width=device-width, initial-scale=1"/>
				<title>IETM浏览器</title>
				<link rel="stylesheet" href="/css/important_css.css" type="text/css"/>
				<link type="text/css" href="/css/dm/s1000D.css" rel="stylesheet"/>
				<script type="text/javascript" src="/js/jquery.js"/>
				<script type="text/javascript" src="/js/jquery-ui.js"/>
				<script type="text/javascript" src="/js/UnityObject2.js"/>
				<script type="text/javascript" src="/js/procedure_api.js"/>
				<script type="text/javascript" src="/js/media.js"/>
				<script type="text/javascript" src="/js/dialog-help.js"/>
				<script type="text/javascript" src="/js/public.js"/>
				<script type="text/javascript" src="/js/jquery.form.js"/>
				<script type="text/javascript" src="/js/zebra_dialog.src.js"/>
				<script type="text/javascript" src="/js/Tdrag.js"/>
				<script type="text/javascript" src="/js/menu.js" charset="UTF-8"/>
				<script type="text/javascript" src="/js/note.js"/>
				<script type="text/javascript" src="/js/pprompt.js"/>
				<script type="text/javascript" src="/ietm/js/dm-plugin.js"/>
				<style type="text/css">
	    	body,html{background:#fff;width:100%;height:100%;overflow:auto}
			</style>
			</head>
			<body>
				<div class="home-d">
					<div class="home-d-t active">
						<div class="home-d-t-pub">
							<div class="home-d-t-title">
								<span>数据模块信息</span>
							</div>
						</div>
						<div class="home-d-t-content">
							<table width="50%" align="left" cellpadding="4" cellspacing="0">
								<tr>
									<td width="100%" colspan="2" style="font-weight:bold;">标识信息</td>
								</tr>
								<!--xml解析内容-->
								<tr>
									<td>数据模块编码:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="dmCode"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>版本信息:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="issueInfo" mode="issueInfo"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>发布日期:[yyyy-mm-dd]</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
											<xsl:apply-templates select="issueDate" mode="issueDate"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>语言:[国家/语言]</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="language" mode="language"/>
										</xsl:for-each>
									</td>
								</tr>
							</table>
							<table width="50%" align="right" cellpadding="0" cellspacing="0">
								<tr>
									<td width="100%" colspan="2" style="font-weight:bold;">状态信息</td>
								</tr>
								<!--xml解析内容-->
								<tr>
									<td>密级:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmStatus">
											<xsl:apply-templates select="security" mode="security"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>责任合作单位:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmStatus">
											<xsl:apply-templates select="responsiblePartnerCompany" mode="responsiblePartnerCompany"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>创作单位:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmStatus">
											<xsl:apply-templates select="originator" mode="originator"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>适用性信息:</td>
									<td>
										<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
									</td>
								</tr>
								<tr>
									<td>质量验证:</td>
									<td>理论验证(TT)</td>
								</tr>
							</table>
						</div>
					</div>
					<div class="home-d-b">
						<!--左右的样式-->
						<div class="home-d-b-tow">
							<div>
								<div class="home-d-t-pub">
									<div class="home-d-t-title">
										<!--解析内容标题-->
										<span class="dmtitle">
											<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
												<xsl:apply-templates select="dmTitle" mode="dmTitle"/>
											</xsl:for-each>
										</span>
									</div>
									<div class="home-d-t-syx">
										<span>适用性：
								<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
										</span>
										<span>密级：
							<xsl:for-each select="identAndStatusSection/dmStatus">
												<xsl:apply-templates select="security" mode="security1"/>
											</xsl:for-each>
										</span>
										<span class="home-d-m-show">更多>></span>
										<span class="home-d-m-hide">隐藏>></span>
									</div>
								</div>
								<div class="home-d-b-content" id="article">
									<!--解析主题内容-->
									<div id="content">
										<!--  <p class="subtitle"><xsl:value-of select="identAndStatusSection/dmAddress/dmAddressItems/dmTitle/techName"/> - <xsl:value-of select="identAndStatusSection/dmAddress/dmAddressItems/dmTitle/infoName"/></p>  -->
										<xsl:if test="content/refs">
											<p class="titleItalic">{{参考}}</p>
											<a name="refs"/>
											<table cellspacing="0" class="bordered">
												<!--<xsl:if test="">-->
												<caption class="tableTitle">表 %TABLENO% 参考</caption>
												<thead>
													<tr>
														<th class="bordered">
															<p class="table">数据模块/技术出版物</p>
														</th>
														<th class="bordered">
															<p class="table">标题</p>
														</th>
													</tr>
												</thead>
												<tbody>
													<xsl:for-each select="content/refs/dmRef">
														<tr>
															<td class="bordered">
																<xsl:for-each select="dmRefIdent">
																	<p class="table">
																		<a href="javascript:void(0);" >
																			<xsl:attribute name="href">%PATH%DMC-<xsl:apply-templates select="dmCode"/>.html</xsl:attribute>
																			<xsl:attribute name="onclick">refDM('<xsl:apply-templates select="dmCode"/>')</xsl:attribute><xsl:apply-templates select="dmCode"/>
																		</a>
																	</p>
																</xsl:for-each>
															</td>
															<td class="bordered">
																<xsl:for-each select="dmRefAddressItems">
																	<p class="table">
																		<xsl:value-of select="dmTitle/techName"/> - <xsl:value-of select="dmTitle/infoName"/>
																	</p>
																</xsl:for-each>
															</td>
														</tr>
													</xsl:for-each>
												</tbody>
											</table>
										</xsl:if>
										<xsl:if test="content/maintPlanning/inspectionDefinition">
											<xsl:if test="content/maintPlanning/inspectionDefinition/inspection/limit">
												<table cellspacing="0" class="bordered1">
													<tr>
														<td colspan="5" align="center">
						定义检查
					</td>
													</tr>
													<tr>
														<td colspan="5" cellspacing="0" align="center">
															<p>
																<xsl:for-each select="content/maintPlanning/inspectionDefinition/inspection/limit">
							  间隔周期/时机：<xsl:value-of select="@limitCond"/>
																	<xsl:if test="threshold/tolerance/@toleranceHigh">( - <xsl:value-of select="threshold/tolerance/@toleranceHigh"/>
																		<xsl:text> </xsl:text>
																		<xsl:apply-templates select="threshold"/>
																	</xsl:if>
																	<xsl:if test="threshold/tolerance/@toleranceLow"> + <xsl:value-of select="threshold/tolerance/@toleranceLow"/>
																		<xsl:text> </xsl:text>
																		<xsl:apply-templates select="threshold"/>)<br/>
																	</xsl:if>
																</xsl:for-each>
															</p>
														</td>
													</tr>
												</table>
											</xsl:if>
											<xsl:if test="content/maintPlanning/inspectionDefinition/taskGroup">
												<table cellspacing="0" class="bordered">
													<thead>
														<tr>
															<th class="bordered">
																<p class="table">序号</p>
															</th>
															<th class="bordered">
																<p class="table">工作项目</p>
															</th>
															<th class="bordered">
																<p class="table">引用</p>
															</th>
															<th class="bordered">
																<p class="table">适用性</p>
															</th>
															<th class="bordered">
																<p class="table">备注</p>
															</th>
														</tr>
													</thead>
													<tbody>
														<xsl:for-each select="content/maintPlanning/inspectionDefinition/taskGroup/taskItem">
															<tr>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="@taskSeqNumber"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="@taskName"/>
																	</p>
																</td>
																<td class="bordered">
																	<xsl:for-each select="refs/dmRef/dmRefIdent">
																		<p class="table">
																			<a href="javascript:void(0);" >
																				<xsl:attribute name="href">%PATH%DMC-<xsl:apply-templates select="dmCode"/>.html</xsl:attribute>
																				 <xsl:attribute name="onclick">refDM('<xsl:apply-templates select="dmCode"/>')</xsl:attribute><xsl:apply-templates select="dmCode"/>
																			</a>
																		</p>
																	</xsl:for-each>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:call-template name="handlepagefragment">
																			<xsl:with-param name="appId" select="@applicRefId"/>
																		</xsl:call-template>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="task/taskDescr"/>
																	</p>
																</td>
															</tr>
														</xsl:for-each>
													</tbody>
												</table>
											</xsl:if>
										</xsl:if>
										<!--以下匹配DMC-S1000DBIKE-AAA-D05-40-00-00AA-000A-A_006-00_ZH-CN内容-->
										<!--    <xsl:if test="content/maintPlanning/inspectionDefinition/inspection/limit">
	   <p class="tableTitle">定义检查</p>
	    <table cellspacing="0" class="bordered">
        <xsl:for-each select="content/maintPlanning/inspectionDefinition/inspection/limit">
          间隔周期/时机：<xsl:value-of select="@limitCond"/>
          <xsl:if test="threshold/tolerance/@toleranceHigh">( - <xsl:value-of select="threshold/tolerance/@toleranceHigh"/><xsl:text> </xsl:text><xsl:apply-templates select="threshold"/></xsl:if>
          <xsl:if test="threshold/tolerance/@toleranceLow"> + <xsl:value-of select="threshold/tolerance/@toleranceLow"/><xsl:text> </xsl:text><xsl:apply-templates select="threshold"/>)<br/></xsl:if>
        </xsl:for-each>
	  
      </xsl:if>
 -->
										<!--以上匹配DMC-S1000DBIKE-AAA-D05-40-00-00AA-000A-A_006-00_ZH-CN内容-->
										<!--以下匹配DMC-S1000DBIKE-AAA-D05-10-00-00AA-000A-A_007-00_ZH-CN内容-->
										<xsl:if test="content/maintPlanning/timeLimitInfo/@timeLimitIdent">
											<div id="content">
												<p class="titleItalic">{{时间限制信息}}</p>
												<table cellspacing="0" class="bordered">
													<thead>
														<tr>
															<th class="bordered" rowspan="2">
																<p class="table">序号</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">项目号</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">名称</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">标识号</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">数量</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">类别</p>
															</th>
															<th class="bordered" colspan="3">
																<p class="table">时间限制</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">适用性</p>
															</th>
															<th class="bordered" rowspan="2">
																<p class="table">备注</p>
															</th>
														</tr>
														<tr>
															<th class="bordered">
																<p class="table">首翻期</p>
															</th>
															<th class="bordered">
																<p class="table">翻修间隔</p>
															</th>
															<th class="bordered">
																<p class="table">总寿命</p>
															</th>
														</tr>
													</thead>
													<tbody>
														<xsl:for-each select="content/maintPlanning/timeLimitInfo">
															<tr>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="position()"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="@timeLimitIdent"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="equipGroup/equip/name"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">制造商：<xsl:value-of select="equipGroup/equip/identNumber/manufacturerCode"/>
																	</p>
																	<p class="table">
																		<xsl:if test="equipGroup/equip/identNumber/partAndSerialNumber">
																			<xsl:text> </xsl:text>部件号：<xsl:text> </xsl:text>
																			<xsl:value-of select="equipGroup/equip/identNumber/partAndSerialNumber/partNumber"/>
																		</xsl:if>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="reqQuantity/text()"/>
																		<!-- <xsl:value-of select="reqQuantity/@unitOfMeasure"/> -->
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:if test="content/maintPlanning/timeLimitInfo/timeLimitCategory">
																			<xsl:choose>
																				<xsl:when test="@timeLimitCategoryValue='1'">Ⅰ</xsl:when>
																				<xsl:when test="@timeLimitCategoryValue='2'">Ⅱ</xsl:when>
																			</xsl:choose>
																		</xsl:if>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:for-each select="timeLimit">
																			<xsl:for-each select="limitType">
																				<xsl:choose>
																					<xsl:when test="@limitUnitType='lt61'">
																						<xsl:if test="threshold/thresholdValue">
																							<xsl:value-of select="threshold/thresholdValue"/>
																							<xsl:text> </xsl:text>
																							<xsl:apply-templates select="threshold"/>
																						</xsl:if>
																						<br/>
																						<xsl:if test="threshold/tolerance/@toleranceHigh">( - <xsl:value-of select="threshold/tolerance/@toleranceHigh"/>
																						</xsl:if>
																						<xsl:if test="threshold/tolerance/@toleranceLow"> + <xsl:value-of select="threshold/tolerance/@toleranceLow"/>
																							<xsl:text> </xsl:text>
																							<xsl:apply-templates select="threshold"/>)<br/>
																						</xsl:if>
																					</xsl:when>
																					<!-- <xsl:when test="@limitUnitType='lt02'">Hard time</xsl:when>
						<xsl:when test="@limitUnitType='lt03'">Since last maintenance</xsl:when>
						<xsl:when test="@limitUnitType='lt04'">Out time limit</xsl:when>
						<xsl:when test="@limitUnitType='lt05'">On condition</xsl:when>
						<xsl:when test="@limitUnitType='lt06'">Check maintenance</xsl:when>
						<xsl:when test="@limitUnitType='lt07'">Functional check</xsl:when>
						<xsl:when test="substring(@limitUnitType,3) > 7 and substring(@limitUnitType,3) &lt; 51">Not available for projects</xsl:when>
						<xsl:when test="substring(@limitUnitType,3) > 50 and substring(@limitUnitType,3) &lt; 99">Available for projects</xsl:when> -->
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:for-each>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:for-each select="timeLimit">
																			<xsl:for-each select="limitType">
																				<xsl:choose>
																					<xsl:when test="@limitUnitType='lt01'">
																						<xsl:if test="threshold/thresholdValue">
																							<xsl:value-of select="threshold/thresholdValue"/>
																							<xsl:text> </xsl:text>
																							<xsl:apply-templates select="threshold"/>
																						</xsl:if>
																						<br/>
																						<xsl:if test="threshold/tolerance/@toleranceHigh">( - <xsl:value-of select="threshold/tolerance/@toleranceHigh"/>
																						</xsl:if>
																						<xsl:if test="threshold/tolerance/@toleranceLow"> + <xsl:value-of select="threshold/tolerance/@toleranceLow"/>
																							<xsl:text> </xsl:text>
																							<xsl:apply-templates select="threshold"/>)<br/>
																						</xsl:if>
																					</xsl:when>
																					<!-- <xsl:when test="@limitUnitType='lt02'">Hard time</xsl:when>
						<xsl:when test="@limitUnitType='lt03'">Since last maintenance</xsl:when>
						<xsl:when test="@limitUnitType='lt04'">Out time limit</xsl:when>
						<xsl:when test="@limitUnitType='lt05'">On condition</xsl:when>
						<xsl:when test="@limitUnitType='lt06'">Check maintenance</xsl:when>
						<xsl:when test="@limitUnitType='lt07'">Functional check</xsl:when>
						<xsl:when test="substring(@limitUnitType,3) > 7 and substring(@limitUnitType,3) &lt; 51">Not available for projects</xsl:when>
						<xsl:when test="substring(@limitUnitType,3) > 50 and substring(@limitUnitType,3) &lt; 99">Available for projects</xsl:when> -->
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:for-each>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:for-each select="timeLimit">
																			<xsl:for-each select="limitType">
																				<xsl:choose>
																					<xsl:when test="@limitUnitType='lt02'">
																						<xsl:if test="threshold/thresholdValue">
																							<xsl:value-of select="threshold/thresholdValue"/>
																							<xsl:text> </xsl:text>
																							<xsl:apply-templates select="threshold"/>
																						</xsl:if>
																						<br/>
																						<xsl:if test="threshold/tolerance/@toleranceHigh">( - <xsl:value-of select="threshold/tolerance/@toleranceHigh"/>
																						</xsl:if>
																						<xsl:if test="threshold/tolerance/@toleranceLow"> + <xsl:value-of select="threshold/tolerance/@toleranceLow"/>
																							<xsl:text> </xsl:text>
																							<xsl:apply-templates select="threshold"/>)<br/>
																						</xsl:if>
																					</xsl:when>
																					<!-- <xsl:when test="@limitUnitType='lt02'">Hard time</xsl:when>
						<xsl:when test="@limitUnitType='lt03'">Since last maintenance</xsl:when>
						<xsl:when test="@limitUnitType='lt04'">Out time limit</xsl:when>
						<xsl:when test="@limitUnitType='lt05'">On condition</xsl:when>
						<xsl:when test="@limitUnitType='lt06'">Check maintenance</xsl:when>
						<xsl:when test="@limitUnitType='lt07'">Functional check</xsl:when>
						<xsl:when test="substring(@limitUnitType,3) > 7 and substring(@limitUnitType,3) &lt; 51">Not available for projects</xsl:when>
						<xsl:when test="substring(@limitUnitType,3) > 50 and substring(@limitUnitType,3) &lt; 99">Available for projects</xsl:when> -->
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:for-each>
																	</p>
																</td>
																<!--  <td class="bordered">
              <p class="table">
                <xsl:for-each select="timeLimit">
                  <xsl:apply-templates select="limitType"/><br/>
                    <xsl:for-each select="limitType">
                      <xsl:if test="threshold/thresholdValue">Every <xsl:value-of select="threshold/thresholdValue"/><xsl:text> </xsl:text><xsl:apply-templates select="threshold"/></xsl:if><br/>
                      <xsl:if test="threshold/tolerance/@toleranceHigh">( + <xsl:value-of select="threshold/tolerance/@toleranceHigh"/></xsl:if>
                      <xsl:if test="threshold/tolerance/@toleranceLow"> / - <xsl:value-of select="threshold/tolerance/@toleranceLow"/><xsl:text> </xsl:text><xsl:apply-templates select="threshold"/>)<br/></xsl:if>
                    </xsl:for-each>
                </xsl:for-each>
              </p>
            </td> -->
																<td class="bordered">
																	<p class="table">
																		<xsl:call-template name="handlepagefragment">
																			<xsl:with-param name="appId" select="@applicRefId"/>
																		</xsl:call-template>
																		<!--     <xsl:call-templates select="timeLimitInfo" mode="timeLimitInfo"/> -->
																		<!-- <xsl:value-of select="$a"/> -->
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:for-each select="timeLimit">
																			<xsl:value-of select="remarks/simplePara"/>
																		</xsl:for-each>
																	</p>
																</td>
															</tr>
														</xsl:for-each>
													</tbody>
												</table>
											</div>
										</xsl:if>
										<!--以上匹配DMC-S1000DBIKE-AAA-D05-10-00-00AA-000A-A_007-00_ZH-CN内容-->
										<!--以下匹配DMC-S1000DBIKE-AAA-D05-20-00-00AA-000A-A_007-00_ZH-CN内容-->
										<xsl:if test="content/maintPlanning/taskDefinition">
											<div id="content">
												<p class="titleItalic">{{表1.维修项目索引表}}</p>
												<table cellspacing="0" class="bordered">
													<thead>
														<tr>
															<th class="bordered">
																<p class="table">项目编号</p>
															</th>
															<th class="bordered">
																<p class="table">名称</p>
															</th>
															<th class="bordered">
																<p class="table">维修项目</p>
															</th>
															<th class="bordered">
																<p class="table">维修间隔期</p>
															</th>
															<th class="bordered">
																<p class="table">引用</p>
															</th>
															<th class="bordered">
																<p class="table">适用性</p>
															</th>
															<th class="bordered">
																<p class="table">备注</p>
															</th>
														</tr>
													</thead>
													<tbody>
														<xsl:for-each select="content/maintPlanning/taskDefinition">
															<tr>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="@taskIdent"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="limit/threshold/thresholdValue"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="task/taskTitle"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="limit/threshold/tolerance/@toleranceLow"/>
																	</p>
																</td>
																<td class="bordered">
																	<xsl:for-each select="refs/dmRef/dmRefIdent">
																		<p class="table">
																			<a href="javascript:void(0);">
																				 <xsl:attribute name="href">%PATH%DMC-<xsl:apply-templates select="dmCode"/>.html</xsl:attribute>
																				<xsl:attribute name="onclick">refDM('<xsl:apply-templates select="dmCode"/>')</xsl:attribute><xsl:apply-templates select="dmCode"/>
																			</a>
																		</p>
																	</xsl:for-each>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:value-of select="limit/threshold/tolerance/@toleranceHigh"/>
																	</p>
																</td>
																<td class="bordered">
																	<p class="table">
																		<xsl:apply-templates select="remarks/simplePara"/>
																	</p>
																</td>
															</tr>
														</xsl:for-each>
													</tbody>
												</table>
											</div>
										</xsl:if>
									</div>
									<!--content的div-->
								</div>
							</div>
							<div class="home-d-b-towr" style="display:none">
								<div class="home-d-t-pub">
									<div class="home-d-t-title">
										<span>多媒体显示区</span>
									</div>
									<div class="home-d-t-syx">
										<div class="cgmu3dclose"/>
									</div>
									<div class="home-d-t-syx" style="margin-right:30px;">
										<div class="fullscreen"/>
									</div>
								</div>
								<div class="home-d-b-content" id="ietm-media">
						
						</div>
							</div>
						</div>
					</div>
				</div>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="dmTitle">
		<xsl:value-of select="techName"/> - <xsl:value-of select="infoName"/>
	</xsl:template>
	<xsl:template match="dmCode">
		<xsl:value-of select="@modelIdentCode"/>-<xsl:value-of select="@systemDiffCode"/>-<xsl:value-of select="@systemCode"/>-<xsl:value-of select="@subSystemCode"/>
		<xsl:value-of select="@subSubSystemCode"/>-<xsl:value-of select="@assyCode"/>-<xsl:value-of select="@disassyCode"/>
		<xsl:value-of select="@disassyCodeVariant"/>-<xsl:value-of select="@infoCode"/>
		<xsl:value-of select="@infoCodeVariant"/>-<xsl:value-of select="@itemLocationCode"/>
	</xsl:template>
	<!--版本信息-->
	<xsl:template match="*" mode="issueInfo">	
	[版本号:<xsl:value-of select="@issueNumber"/>]
	<span style="display:none">
			<xsl:value-of select="@inWork"/>
		</span>
	</xsl:template>
	<!--发布日期-->
	<xsl:template match="*" mode="issueDate">
		<xsl:value-of select="@year"/>-<xsl:value-of select="@month"/>-<xsl:value-of select="@day"/>
	</xsl:template>
	<!--语言-->
	<xsl:template match="*" mode="language">
		<xsl:value-of select="@countryIsoCode"/>/<xsl:value-of select="@languageIsoCode"/>
	</xsl:template>
	<!--秘级-->
	<xsl:template match="*" mode="security">
		<xsl:choose>
			<xsl:when test="./@securityClassification='01'">
			[级别:01 公开]
		</xsl:when>
			<xsl:when test="./@securityClassification='02'">
			[级别:02 内部]
		</xsl:when>
			<xsl:when test="./@securityClassification='03'">
			[级别:03 秘密]
		</xsl:when>
			<xsl:when test="./@securityClassification='04'">
			[级别:04 机密]
		</xsl:when>
			<xsl:when test="./@securityClassification='05'">
			[级别:05 绝密]
		</xsl:when>
			<xsl:otherwise>
        </xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--密级划分-->
	<!--秘级-->
	<xsl:template match="*" mode="security1">
		<xsl:choose>
			<xsl:when test="./@securityClassification='01'">
			公开
		</xsl:when>
			<xsl:when test="./@securityClassification='02'">
			内部
		</xsl:when>
			<xsl:when test="./@securityClassification='03'">
			秘密
		</xsl:when>
			<xsl:when test="./@securityClassification='04'">
			机密
		</xsl:when>
			<xsl:when test="./@securityClassification='05'">
			绝密
		</xsl:when>
			<xsl:otherwise>
        </xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--responsiblePartnerCompany-->
	<xsl:template match="*" mode="responsiblePartnerCompany">
	[<xsl:value-of select="@enterpriseCode"/>]
</xsl:template>
	<!--originator-->
	<xsl:template match="*" mode="originator">
	[<xsl:value-of select="@enterpriseCode"/>]
</xsl:template>
	<xsl:template match="limitType">
		<xsl:choose>
			<xsl:when test="@limitUnitType='lt01'">Time between overhaul</xsl:when>
			<xsl:when test="@limitUnitType='lt02'">Hard time</xsl:when>
			<xsl:when test="@limitUnitType='lt03'">Since last maintenance</xsl:when>
			<xsl:when test="@limitUnitType='lt04'">Out time limit</xsl:when>
			<xsl:when test="@limitUnitType='lt05'">On condition</xsl:when>
			<xsl:when test="@limitUnitType='lt06'">Check maintenance</xsl:when>
			<xsl:when test="@limitUnitType='lt07'">Functional check</xsl:when>
			<xsl:when test="substring(@limitUnitType,3) > 7 and substring(@limitUnitType,3) &lt; 51">Not available for projects</xsl:when>
			<xsl:when test="substring(@limitUnitType,3) > 50 and substring(@limitUnitType,3) &lt; 99">Available for projects</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="threshold">
		<xsl:choose>
			<xsl:when test="@thresholdUnitOfMeasure='lt01'">Time between overhaul</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th01'">Flight hours</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th02'">Flight cycles</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th03'">Months</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th04'">Weeks</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th05'">Years</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th06'">Days</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th07'">Supersonic cycles</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th08'">Pressure cycles</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th09'">Engine cycles</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th10'">Engine change</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th11'">Shop visits</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th12'">Auxiliary power unit change</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th13'">Landing gear change"th14" Wheel change</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th15'">Engine start</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th16'">APU hours</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th17'">Engine hours</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th18'">Elapsed hours</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th19'">Landings</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th20'">Operating cycles</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th21'">Operating hours</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th22'">Supersonic hours</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th23'">"A" check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th24'">"B" check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th25'">"C" check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th26'">"D" check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th27'">Daily</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th28'">"E" check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th29'">Overnight</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th30'">Preflight</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th31'">Routine check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th32'">Structural "C" check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th33'">Service check</xsl:when>
			<xsl:when test="@thresholdUnitOfMeasure='th34'">Transit</xsl:when>
			<xsl:when test="substring(@thresholdUnitOfMeasure,3) > 34 and substring(@thresholdUnitOfMeasure,3) &lt; 51">Not available for projects</xsl:when>
			<xsl:when test="substring(@thresholdUnitOfMeasure,3) > 50 and substring(@thresholdUnitOfMeasure,3) &lt; 99">Available for projects</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="limit">
		<xsl:choose>
			<xsl:when test="@limitTypeValue='po'">Perform once</xsl:when>
			<xsl:when test="@limitTypeValue='oc'">On condition</xsl:when>
			<xsl:when test="@limitTypeValue='pe'">Perform periodically</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="taskDefinition">
		<xsl:choose>
			<xsl:when test="@taskCode='taskcd01'">Detailed inspection (DET)</xsl:when>
			<xsl:when test="@taskCode='taskcd02'">Discard (DIS)</xsl:when>
			<xsl:when test="@taskCode='taskcd03'">Functional Check (FNC)</xsl:when>
			<xsl:when test="@taskCode='taskcd04'">General visual inspection (GVI)</xsl:when>
			<xsl:when test="@taskCode='taskcd05'">Lubrication (LUB)</xsl:when>
			<xsl:when test="@taskCode='taskcd06'">Operational check (OPC)</xsl:when>
			<xsl:when test="@taskCode='taskcd07'">Restoration (RST)</xsl:when>
			<xsl:when test="@taskCode='taskcd08'">Servicing (SVC)</xsl:when>
			<xsl:when test="@taskCode='taskcd09'">Visual check (VCK)</xsl:when>
			<xsl:when test="substring(@taskCode,7) > 9 and substring(@taskCode,7) &lt; 51">Not available for projects</xsl:when>
			<xsl:when test="substring(@taskCode,7) > 50 and substring(@taskCode,7) &lt; 99">Available for projects</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="personSkill">
		<xsl:choose>
			<xsl:when test="@skillLevelCode='sk01'">Basic</xsl:when>
			<xsl:when test="@skillLevelCode='sk02'">Intermediate</xsl:when>
			<xsl:when test="@skillLevelCode='sk03'">Advanced</xsl:when>
			<xsl:when test="substring(@skillLevelCode,3) > 3 and substring(@skillLevelCode,3) &lt; 51">Not available for projects</xsl:when>
			<xsl:when test="substring(@skillLevelCode,3) > 50 and substring(@skillLevelCode,3) &lt; 99">Available for projects</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="supervisorLevel">
		<xsl:choose>
			<xsl:when test="@supervisorLevelCode='sl51'">基层级</xsl:when>
			<xsl:when test="@supervisorLevelCode='sl52'">中继级</xsl:when>
			<xsl:when test="@supervisorLevelCode='sl53'">基地级</xsl:when>
			<!--  <xsl:when test="@supervisorLevelCode='sl04'">High</xsl:when>
        <xsl:when test="substring(@supervisorLevelCode,3) > 4 and substring(@supervisorLevelCode,3) &lt; 51">Not available for projects</xsl:when>
        <xsl:when test="substring(@supervisorLevelCode,3) > 50 and substring(@supervisorLevelCode,3) &lt; 99">Available for projects</xsl:when> -->
		</xsl:choose>
	</xsl:template>
	<!--*************************************************-->
	<!--*************************************************-->
	<!--************************handlepagefragment************-->
	<!--*************************************************-->
	<xsl:template name="handlepagefragment">
		<xsl:param name="appId"/>
		<!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
		<xsl:for-each select="//referencedApplicGroup//applic">
			<xsl:if test="@id=$appId">
				<xsl:value-of select="displayText/simplePara"/>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
	<!-- <xsl:template name="timeLimitInfo" match="timeLimitInfo">
         <xsl:with-param name="appId">
			<xsl:value-of select="@applicRefId"/>
		 </xsl:with-param>
    </xsl:template> -->
</xsl:stylesheet>
